package tk.uodrad.apex.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import tk.uodrad.apex.project.pojo.dto.PeopleAddNewDTO;
import tk.uodrad.apex.project.pojo.dto.PeopleUpdateDTO;
import tk.uodrad.apex.project.pojo.dto.VehicleAddNewDTO;
import tk.uodrad.apex.project.pojo.dto.VehicleUpdateDTO;
import tk.uodrad.apex.project.pojo.entity.Vehicle;
import com.baomidou.mybatisplus.extension.service.IService;
import tk.uodrad.apex.project.pojo.vo.PeopleListVO;
import tk.uodrad.apex.project.pojo.vo.VehicleListVO;

/**
* @author Administrator
* @description 针对表【car_management】的数据库操作Service
* @createDate 2023-04-11 09:21:37
*/
public interface VehicleService extends IService<Vehicle> {
    /**
     * 添加单个车辆
     * @param vehicleAddNewDTO 添加车辆DTO
     */
    void save(VehicleAddNewDTO vehicleAddNewDTO);

    /**
     * 根据ID修改车辆
     * @param vehicleUpdateDTO 修改车辆DTO
     */
    void updateById(VehicleUpdateDTO vehicleUpdateDTO);

    /**
     * 分页查询车辆列表
     * @param pageNum 第几页
     * @param pageSize 每页多少条数据
     * @param communityCode 小区编号
     * @return IPage<VehicleListVO> VehicleListVO分页对象
     */
    IPage<VehicleListVO> list(Integer pageNum, Integer pageSize, String communityCode);
}
